joinLeft

fun <L, R> Either<Either<L, R>, R>.joinLeft(): Either<L, R>

Returns this if this is Right. Otherwise returns value of Left.

Requires Left to be an Either.

Return

This if this is Right. Otherwise returns value of Left.